home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / GameKit / Headers / gamekit / GKCollisionGroup.h < prev    next >
Text File  |  1995-06-12  |  633b  |  30 lines

  1.  
  2. #import <gamekit/gamekit.h>
  3.  
  4. @interface GKCollisionGroup:Object
  5. {
  6.     int tag;
  7.     id actorLists[2];      // we basically do a "cross product" of these lists
  8.     id collisionDetector; // object that can detect collisions between actors
  9.     id delegate;
  10. }
  11.  
  12. - init;
  13.  
  14. // setting and getting tags
  15. - (int)tag;
  16. - setTag:(int)anInt;
  17.  
  18. // adding and removing actors from the collision list
  19. - addActor:anActor toList:(int)number;
  20. - removeActor:anActor fromList:(int)number;
  21.  
  22. // setting and getting the delegate
  23. // (delegate gets sent -actor:collidedWith: for each collision detected)
  24. - delegate;
  25. - setDelegate:anObject;
  26.  
  27. - calculateCollisions:sender;
  28.  
  29. @end
  30.